package com.powermanager.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by lqy on 16/7/7.
 */
public class LineBean implements Parcelable {
    int tag;
    String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getTag() {
        return tag;
    }

    public void setTag(int tag) {
        this.tag = tag;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.tag);
        dest.writeString(this.name);
    }

    public LineBean() {
    }

    protected LineBean(Parcel in) {
        this.tag = in.readInt();
        this.name = in.readString();
    }

    public static final Parcelable.Creator<LineBean> CREATOR = new Parcelable.Creator<LineBean>() {
        @Override
        public LineBean createFromParcel(Parcel source) {
            return new LineBean(source);
        }

        @Override
        public LineBean[] newArray(int size) {
            return new LineBean[size];
        }
    };
}
